package edu.taru.mapper;

import java.util.List;
import edu.taru.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    User getUserByUserNamePassword(@Param("userName") String userName,
                                   @Param("userPassword") String userPassword);

    User getUserByUserId(@Param("userId") String userId);

    //遍历用户
    List<User> selectUser();
    //查询用户信息
    User selectUserInfor(Integer uid);
    //修改用户信息
    int  updateUser(User user);
    int insertList(List<User> list);
}